<template>
  <div class="school">

      <h2 >学校名称：{{name | mySlice}}</h2>
      <h2>学校地址：{{address}}</h2>
      <button @click="test">点我使用原型方法</button>
  </div>
</template>

<script>


export default {

  // eslint-disable-next-line vue/multi-word-component-names
  name: "Student",
  data(){
    return{
      address:'重庆市巴南区红光大道',
      name:'重庆理工大学',

    }
  },

}
</script>

<style scoped>
    .school{
      background-color: skyblue;
    }
</style>